{include file="biz/biz_header.html"} 
<style type="text/css">
    td span label{float:left; padding:3px; margin:2px; background:#E6E6E6; cursor:pointer; display:inline-block; }
    td span label.active{background:#F60; color:#fff;}
	td .label_s{margin-right:20px;}
    #container{height:200px; width: 200px; float:left;}  
    #container_front{width: 600px; height:500px; border: 1px solid #000; position: absolute; top: 10px; background-color: #fff; overflow: hidden;}
    #container_m{ width: 550px; height: 450px; margin: 0 auto;}
    #cancel_btn{display: block; width: 600px; height: 18px; line-height: 18px; text-align: right;}
</style>
<script type='text/javascript'  src='{$APP_ROOT}/admin/public/kindeditor/kindeditor.js'></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.2"></script> 
<script type="text/javascript" src="{$TMPL}/js/biz.location.map.js"></script> 

<?php
$this->_var['youhuicss'][] = $this->_var['TMPL_REAL']."/css/datepicker.css";
$this->_var['youhuijs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['youhuijs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['youhuijs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

?>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$youhuicss"}" />
<script type="text/javascript" src="{function name="parse_script" v="$youhuijs"}"></script>
<script type="text/javascript">
	$(document).ready(function(){
		if ($("input[name='takeaway_time']").length > 0) {
			$("input[name='takeaway_time']").datepicker({
				showAnim: 'fadeIn'
			});
		}
	});
</script>
<script type="text/javascript">
	var VAR_MODULE = "m";
	var VAR_ACTION = "a";
	var ROOT = '{$APP_ROOT}/biz.php';
	var ROOT_PATH = '{$APP_ROOT}';
	
	var blue_point = "{$APP_ROOT}/system/blue_point.png";
	var red_point = "{$APP_ROOT}/system/red_point.png";
	$(document).ready(function(){
		 $("input[name='search_api']").bind("click",function(){  
		 	var api_address = $("input[name='api_address']").val();
			var city="{$info.city_name}";
			if ($.trim(api_address) == '') {
				alert("{$LANG.INPUT_KW_PLEASE}");
			}
			else 
			{
				search_api(api_address, city);
			}
        });
		draw_map('{$info.xpoint}','{$info.ypoint}');
		$("#container_front").hide();
        $("#cancel_btn").bind("click",function(){
			$("#container_front").hide();
		});
        $("input[name='chang_api']").bind("click",function(){ 
            editMap($("input[name='xpoint']").attr('value'),$("input[name='ypoint']").attr('value'));
        });
		
		
	});
</script>
{include file="biz/biz_nav.html"}
<div class="wrap clearfix wb biz-wrap">
{include file="biz/biz_info_header.html"}
<div class="biz_index_box clearfix">
	<div class="p10 clearfix">
		<div class="uc-location">
		<div class="blank10"></div>
		<h3 class="modify-title">
			修改店铺资料—{$info.name}
			<a href="{$history_back}">返回上一页</a>
			<a href="{url x="store" r="view" p="id=$info.id"}" target="_blank" style="margin-left:10px">查看店铺</a>
			<a href="{url x="biz" r="publish#images" p="id=$info.id&f=profile"}" >管理图片</a>
		</h3>
		<form method="post" action="{url x="biz" r="profile#update"}">
		<table cellspacing="0" cellpadding="0" border="0" class="data-table">
			<tr>
				<td class="dleft">标签：</td>
				<td>
					<input type="text" class="f-input" name="tags" style="width:50%" value="{$info.tags}">
					<span class="red">
						[多个标签以空格分隔]
					</span>
				</td>
			</tr>
			<tr>
				<td>图片：</td>
				<td style="height:40px;padding-left:0;vertical-align:top;" class="no-border">
					{function name="show_ke_image" v="preview" cn="$info.preview"}
				</td>
			</tr>
			{if $info.is_verify eq 1}
			<tr>
				<td class="dleft">资质图片：</td>
				<td >
					<a href="{$info.biz_license}" target="_blank">营业执照</a>
					<a href="{$info.biz_other_license}" target="_blank">其他资质</a>
					<span class="red">该资料无法修改，如有变更请联系网站</span>
				</td>
			</tr>
			{/if}
			<tr style="display:none;">
				<td class="dleft">城市：</td>
				<td>{$info.city_name}</td>
			</tr>
			<?php /* ?>
			<tr style="display:none;">
				<td>地区列表：</td>
				<td>
						{foreach from="$area_list" item="area"}
						{if $area.pid eq 0}
						<div class="area_big_box f_l" style="width:85px">
						<label><input type="checkbox" name="area_id[]" value="{$area.id}" disabled="true" {if $area.checked}checked="checked"{/if} />{$area.name}：</label>
						</div>
						<div class="area_small_box_{$area.id} f_l" style="width:540px">
							{foreach from="$area_list" item="areas"}
								{if $areas.pid eq $area.id}
								<label class="f_l" style="width:100px;"><input type="checkbox" name="area_id[]" value="{$areas.id}" disabled="true" {if $areas.checked gt 0}checked="checked"{/if} />{$areas.name}</label>
								{/if}
							{/foreach}
						</div>
						<div class="blank5"></div>
						{/if}
					{/foreach}
					<script language="JavaScript">
						$(".area_big_box input").click(function(){
							if($(this).attr("checked")==true){
								$(".area_small_box_"+$(this).val()+" input").each(function(){
									$(this).attr("checked",true);
								});
							}
							else
							{
								$(".area_small_box_"+$(this).val()+" input").each(function(){
									$(this).attr("checked",false);
								});
							}
						});
					</script>
				</td>
			</tr>
			<?php */ ?>
			<tr>
				<td>地址：</td>
				<td>
					<input class="f-input" name="address" style="width:80%" value="{$info.address}">
				</td>
			</tr>
			<tr>
				<td>交通路线：</td>
				<td>
					<textarea class="f-textarea" name="route"  style="width:80%; height:100px">{$info.route}</textarea>
				</td>
			</tr>
			<tr>
			<td>人均：</td>
			<td>
				<select name="avg_price">
					<option value="0" {if $info.avg_price eq 0}selected="selected"{/if}>请选择人均</option>
	                <option value="1" {if $info.avg_price eq 1}selected="selected"{/if}>50以下</option>
	                <option value="2" {if $info.avg_price eq 2}selected="selected"{/if}>51-100</option>
	                <option value="3" {if $info.avg_price eq 3}selected="selected"{/if}>101-200</option>
	                <option value="4" {if $info.avg_price eq 4}selected="selected"{/if}>201-400</option>
	                <option value="5" {if $info.avg_price eq 5}selected="selected"{/if}>400以上</option>
				</select>
			</td>
		</tr>
			<tr>
				<td>联系电话：</td>
				<td>
					<input class="f-input" name="tel" style="width:120px" value="{$info.tel}">
				</td>
			</tr>
			<tr>
				<td>联系人：</td>
				<td>
					<input class="f-input" name="contact" style="width:120px" value="{$info.contact}">
				</td>
			</tr>
			<tr>
				<td>营业时间：</td>
				<td>
					<input class="f-input" name="open_time" style="width:120px" value="{$info.open_time}">
				</td>
			</tr>
			<tr>
				<td>停车：</td>
				<td>
					<input class="f-input" name="stop" style="width:300px" value="{$info.stop}">
				</td>
			</tr>
			{if $info.deal_type eq 1}
			<tr>
				<td>包厢情况:</td>
				<td>
					小包厢：<input type="text" value="{$info.s_box}" class="f-input" id="s_box" name="s_box" size="10">个<br>
					中包厢：<input type="text" value="{$info.m_box}" class="f-input" id="m_box" name="m_box" size="10">个<br>
					大包厢：<input type="text" value="{$info.b_box}" class="f-input" id="b_box" name="b_box" size="10">个<br>
					VIP包厢：<input type="text" value="{$info.v_box}" class="f-input" id="v_box" name="v_box" size="10">个
				</td>
			</tr>
			{else}
			<tr>
				<td>餐位情况:</td>
				<td>
					大厅：<input type="text" class="f-input" name="hall" style="width:50px" value="{$info.hall}"  />个餐坐<br>
					包厢：<input type="text" class="f-input" name="box" style="width:50px" value="{$info.box}"  />个
				</td>
			</tr>
			{/if}
			<tr>
				<td>其他：</td>
					<td>
						<label class='label_s'>银行卡支付：<input type="checkbox" value="1" class="f-check" id="is_bank" name="is_bank" {if $info.is_bank eq 1}checked="checked"{/if} /></label>
						<label class='label_s' {if $info.deal_type eq 1}style="display:none"{/if}>有无吸烟区:<input type="checkbox" value="1" class="f-check" name="no_smoking" {if $info.no_smoking eq 1}checked="checked"{/if} /></label>
						<label class='label_s'>外卖：<input type="checkbox" value="1" class="f-check" id="takeaway" name="takeaway" {if $info.takeaway eq 1}checked="checked"{/if} /></label>
						<label >在线预订：<input type="checkbox" value="1" class="f-check" id="one_line_order" name="one_line_order" {if $info.one_line_order eq 1}checked="checked"{/if} /></label>
					</td>
			</tr>
			{if $info.takeaway eq 1}
			<tr>
				<td class="item_title">外卖信息:</td>
				<td class="item_input">
					起送价格：<input type="text" class="f-input" name="takeaway_price" value="{$info.takeaway_price}"  /><br>
					起送份数：<input type="text" class="f-input" name="takeaway_nums" value="{$info.takeaway_nums}"  /><br>
					折扣信息:<input type="text" class="f-input" name="takeaway_zk" value="{$info.takeaway_zk}"  /><br>
					促销信息:<input type="text" class="f-input" name="takeaway_cx" value="{$info.takeaway_cx}"  /><br>
					加盟时间:<input type="text" class="f-input" id="takeaway_time" name="takeaway_time" value="{function name="to_date" val=$info.takeaway_time f="Y-m-d"}" readonly="readonly" /><br>
					商家电话:<input type="text" class="f-input" id="takeaway_tel" name="takeaway_tel" value="{$info.takeaway_tel}" /><span class="red">[该电话为接收会员订餐短信通知时用,必须填写正确！]</span>
				</td>
			</tr>
			{/if}
			<tr>
	            <td>地图定位：</td>
	            <td>            	
	            	关键词：<input type="text" class="textbox" name="api_address" value=""> 
					<input type="button" value="查找" class="button" name="search_api" id="search_api">
					<div style="height:10px; clear:both;"></div>
	                <div id="container" style="overflow-x: hidden; overflow-y: hidden; position: relative; z-index: 0; background-color: rgb(243, 241, 236); color: rgb(0, 0, 0); text-align: left; "><div style="overflow-x: visible; overflow-y: visible; position: absolute; z-index: 0; left: 0px; top: 0px; cursor: url(http://api.map.baidu.com/images/openhand.cur), default; "><div class="BMap_mask" style="position: absolute; left: 0px; top: 0px; z-index: 9; overflow-x: hidden; overflow-y: hidden; -webkit-user-select: none; width: 200px; height: 200px; "></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 200; "><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 800; "></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 700; "><span class="BMap_Marker BMap_noprint" unselectable="on" "="" style="position: absolute; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; cursor: pointer; background-image: url(http://api.map.baidu.com/images/blank.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; width: 19px; height: 25px; left: 90px; top: 75px; z-index: -5215540; background-position: initial initial; background-repeat: initial initial; " title=""></span></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 600; "></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 500; "></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 400; "><span class="BMap_Marker" unselectable="on" style="position: absolute; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; width: 0px; height: 0px; left: 90px; top: 75px; z-index: -5215540; "><div style="position: absolute; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: 19px; height: 25px; overflow-x: hidden; overflow-y: hidden; "><img src="http://api.map.baidu.com/images/marker_red_sprite.png" style="border:none;left:0px; top:0px; position:absolute;"></div></span></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 300; "><span unselectable="on" style="position: absolute; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; width: 20px; height: 11px; left: 94px; top: 89px; "><div style="position: absolute; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: 20px; height: 11px; overflow-x: hidden; overflow-y: hidden; "><img src="http://api.map.baidu.com/images/marker_red_sprite.png" style="border:none;left:-19px; top:-13px; position:absolute;"></div></span></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 200; "></div></div><div style="position: absolute; top: 0px; left: 0px; z-index: 1; "><div style="position: absolute; z-index: -100; left: 100px; top: 100px; "><img style="position: absolute; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; width: 256px; height: 256px; left: -142px; top: -337px; opacity: 1; " src="http://q8.baidu.com/it/u=x=12975;y=2920;z=16;v=010;type=web&amp;fm=44"><img style="position: absolute; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; width: 256px; height: 256px; left: -142px; top: -81px; opacity: 1; " src="http://q7.baidu.com/it/u=x=12975;y=2919;z=16;v=010;type=web&amp;fm=44"></div></div><div style="position: absolute; top: 0px; left: 0px; z-index: 2; "></div></div><div style="height: 32px; position: absolute; z-index: 10; -webkit-text-size-adjust: none; right: auto; top: auto; bottom: 0px; left: 1px; display: none; " class=" anchorBL"><a title="到百度地图查看此区域" target="_blank" href="http://map.baidu.com/?sr=1" style="outline-style: none; outline-width: initial; outline-color: initial; "><img style="border:none;width:77px;height:32px" src="http://api.map.baidu.com/images/copyright_logo.png"></a></div><div id="zoomer" style="position:absolute;z-index:0;top:0px;left:0px;overflow:hidden;visibility:hidden;cursor:url(http://api.map.baidu.com/images/openhand.cur) 8 8,default"><div class="BMap_zoomer" style="top:0;left:0;"></div><div class="BMap_zoomer" style="top:0;right:0;"></div><div class="BMap_zoomer" style="bottom:0;left:0;"></div><div class="BMap_zoomer" style="bottom:0;right:0;"></div></div><div unselectable="on" class=" BMap_stdMpCtrl BMap_stdMpType0 BMap_noprint anchorTL" style="width: 52px; height: 233px; position: absolute; z-index: 1100; -webkit-text-size-adjust: none; bottom: auto; right: auto; top: 10px; left: 10px; "><div class="BMap_stdMpPan"><div class="BMap_button BMap_panN" title="向上平移"></div><div class="BMap_button BMap_panW" title="向左平移"></div><div class="BMap_button BMap_panE" title="向右平移"></div><div class="BMap_button BMap_panS" title="向下平移"></div><div class="BMap_stdMpPanBg BMap_smcbg"></div></div><div class="BMap_stdMpZoom" style="height: 174px; width: 52px; "><div style="height: 174px; width: 37px; "><div class="BMap_button BMap_stdMpZoomIn" title="放大一级"><div class="BMap_smcbg"></div></div><div class="BMap_button BMap_stdMpZoomOut" title="缩小一级"><div class="BMap_smcbg"></div></div></div><div class="BMap_stdMpSlider" style="height: 140px; "><div class="BMap_stdMpSliderBgTop" style="height: 131px; "><div class="BMap_smcbg"></div></div><div class="BMap_stdMpSliderBgBot" style="top: 131px; "><div class="BMap_smcbg"></div></div><div class="BMap_stdMpSliderMask" title="放置到此级别"></div><div class="BMap_stdMpSliderBar" title="拖动缩放" style="cursor: url(http://api.map.baidu.com/images/openhand.cur), default; top: 22px; "><div class="BMap_smcbg"></div></div></div><div class="BMap_zlHolder"><div class="BMap_zlSt"><div class="BMap_smcbg"></div></div><div class="BMap_zlCity"><div class="BMap_smcbg"></div></div><div class="BMap_zlProv"><div class="BMap_smcbg"></div></div><div class="BMap_zlCountry"><div class="BMap_smcbg"></div></div></div></div></div><div unselectable="on" class=" BMap_cpyCtrl anchorBL" style="cursor: default; white-space: nowrap; color: black; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; font: normal normal normal 11px/15px arial, sans-serif; position: absolute; z-index: 10; -webkit-text-size-adjust: none; right: auto; top: auto; bottom: 2px; left: 4px; background-position: initial initial; background-repeat: initial initial; "><span _cid="1"><span style="font-size:11px">© 2012 Baidu</span></span></div></div>
					<div class="blank1"></div>
	                <input type="button" value="手动修改" name="chang_api" id="chang_api">
	                <div style="position:relative; top:-400px;">
	                    <div id="container_front" style="display: none; ">
	                        <a href="#" id="cancel_btn">取消</a>
	                        <div id="container_m"></div>
	                    </div>
	                </div>
					<input type="hidden" name="xpoint" value="{$info.xpoint}">
					<input type="hidden" name="ypoint" value="{$info.ypoint}">
	            </td>
		    </tr>
			<tr>
				<td>部门简介：</td>
				<td style="height:375px; vertical-align:top;">
					{function name="show_ke_textarea" v="brief" w="620" h="300" cnt="$info.brief"}
				</td>
			</tr>
			<tr>
				<td>短信内容：</td>
				<td>
					<textarea class="f-textarea" name="sms_content"  style="width:60%; height:60px">{$info.sms_content}</textarea>
					<div class="blank5"></div>
					<span class="red">
						[若不填发送的短信内容为：名称+电话+地址]
					</span>
				</td>
			</tr>
			
			<tr>
				<td>SEO标题：</td>
				<td>
					<textarea class="f-textarea" name="seo_title"  style="width:60%; height:60px">{$info.seo_title}</textarea>
				</td>
			</tr>
			
			<tr>
				<td>SEO关键词：</td>
				<td>
					<textarea class="f-textarea" name="seo_keyword"  style="width:60%; height:60px">{$info.seo_keyword}</textarea>
				</td>
			</tr>
			
			<tr>
				<td>SEO描述：</td>
				<td>
					<textarea class="f-textarea" name="seo_description"  style="width:60%; height:60px">{$info.seo_description}</textarea>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>
					<input type="submit" class="formbutton" id="do-modify" name="commit" value="{$LANG.DOMODIFY}">
					<input type="reset" class="formbutton2" id="do-reset" name="commit" value="{$LANG.RESET}">
					<input type="hidden" name="name" value="{$info.name}">
					<input type="hidden" name="id" value="{$info.id}">
				</td>
			</tr>
		</table>
		</form>
		</div>
	</div>
	<div class="blank"></div>
</div><!--end biz_index_box-->

</div>
{include file="biz/biz_footer.html"} 